package test;

public class Dog2 extends Dog{
    public Dog2() {
    }

    public Dog2(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat(){
        System.out.println("一只"+getAge()+"岁的"+getName()+"在吃骨头");
    }
}
